package logic_control;

import java.util.Scanner;

public class EveryNumber {
    public static void main(String[] args){
        Scanner scanner = new Scanner(System.in);
        System.out.println("请输入数字n: ");
        int n = scanner.nextInt();
        int m = 0;
        for (int i = 0;;i++) {
            if (n < Math.pow(10, i + 1)) {
                m = i + 1;
                break;
            }
        }
        for (int i = 0;i < m;i++) {
            System.out.print(n % 10 + " ");
            n = n / 10;
        }
    }
}
